/*
 * segment.h
 *
 *  Created on: 24.11.2011
 *      Author: berkut
 */

#ifndef SEGMENT_H_
#define SEGMENT_H_

#include "point.h"
#include <fstream>

struct segment
{
	point a_, b_;
	segment();
	segment(point const &a, point const &b);
	segment(double x1, double y1, double x2, double y2);
	segment(segment const & a);

};

std::ostream & operator << (std::ostream & out, segment const & s);
std::istream & operator >> (std::istream & in, segment & s);

#endif /* SEGMENT_H_ */
